package com.luojie.mapper;

import com.luojie.po.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrdersMapper {

    void insert(Order order);
    @Select("select * from sky_take_out.orders where number = #{orderNumber} and user_id= #{userId}")
    Order getByNumberAndUserId(String outTradeNo, Long userId);

    void update(Order orders);

    @Select("select * from  orders where id=#{id}")
    Order geById(Long id);
}
